<template>
  <div class="panda-table-loading bg-panda-base-dark" style="    opacity: 0.7;" v-if="loading">
    <div class="panda-table-loading-main">
      <q-spinner color="panda-loading-blue" size="3em" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'table-loading',
  props: {
    loading: {
      default: false
    }
  }
}
</script>

<style lang="stylus" scope>
.panda-table-loading {
  position: absolute;
  z-index: 1;
  display: flex;
  justify-content: center;
  width calc(100% - 60px)
  height calc( 100% - 200px)
}

.panda-table-loading-main {
  position: absolute;
  left: 894px;
  top: 295px;
  transform: translate(-50%, -50%);
}
</style>